package com.labrecruit.system.service.impl;

import com.labrecruit.system.domain.StuApply;
import com.labrecruit.system.mapper.ApplyMapper;
import com.labrecruit.system.mapper.UserMapper;
import com.labrecruit.system.service.IApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApplyServiceImpl implements IApplyService {
    @Autowired
    private ApplyMapper applyMapper;
    @Autowired
    private UserMapper userMapper;

    /**
     * 查询报名信息
     */
    @Override
    public List<StuApply> selectUserList (StuApply apply){
        return userMapper.selectUserList(apply);
    }


    /**
     * 查询审核列表
     */
    @Override
    public List<StuApply> selectApplyList (StuApply apply){
        return applyMapper.selectApplyList(apply);
    }


    /**
     * 修改审核状态
     */
    @Override
    public int updateApplyStatus (StuApply apply){
        return applyMapper.updateApplyStatus(apply);
    }
}
